package com.gongren.project.mq.sender.rpc.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.gongren.project.mq.rpc.api.IMqRpcService;
import com.gongren.project.mq.sender.IMqSender;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by zhangjinxia on 2017/8/23.
 */
@Service(version = "0.0.1")
public class MqRpcServiceImpl implements IMqRpcService{

    @Autowired
    private IMqSender mqSender;

    public void send(String queueName, Object msg) {
        mqSender.send(queueName, msg);
    }
}
